package club.hicode.daydayup.json;

import cn.hutool.core.io.FileUtil;
import cn.hutool.core.util.CharsetUtil;
import cn.hutool.json.JSONUtil;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.junit.Test;

/**
 * XML生成测试
 *
 * @author Liu Chunfu
 * @date 2018-07-05 下午2:38
 **/
public class XmlGen {
    @Test
    public void test1() {
        JsonBody jsonBody = new JsonBody();
        String body = FileUtil.readString("/Users/liuchunfu/Develop/temp/kj-dir/share/app1.xml", CharsetUtil.UTF_8);
        jsonBody.setBody(body);
        String s = JSONUtil.toJsonStr(jsonBody);
        System.out.println(s);
    }

    @Test
    public void test2() {
        ObjectMapper mapper = new ObjectMapper();

    }
}
